package com.alibaba.citrus.ots.b2b.trade.order.api;

import com.alibaba.citrus.ots.b2b.trade.order.dto.request.OrderPageQueryRequest;
import com.alibaba.citrus.ots.b2b.trade.order.dto.request.OrderQueryRequest;
import com.alibaba.citrus.ots.b2b.trade.order.dto.response.OrderPageQueryResponse;
import com.alibaba.citrus.ots.b2b.trade.order.dto.response.OrderQueryResponse;
import com.alibaba.citrus.ots.b2b.trade.order.sdo.OrderSDO;
import com.alibaba.cz.base.tool.page.PageResult;
import com.alibaba.lattice2.epoch.meshflow.model.annotation.MeshFlowService;
import com.alibaba.lattice2.epoch.sdk.model.Result;

import java.util.List;

/**
 * @author 张苏徽
 * @date 2021/9/9
 */
@MeshFlowService(apps = {"bc_ots"}, name = "销售查询api")
public interface OrderQueryService {

    /**
     * 分页查询销售订单
     * @param request OrderPageQueryRequest
     * @return PageResult<List<OrderSDO>>
     */
    Result<List<OrderPageQueryResponse>> pageQuery(OrderPageQueryRequest request);

    /**
     * 查询销售订单详情
     * @param request OrderQueryRequest
     * @return OrderSDO
     */
    Result<OrderQueryResponse> query(OrderQueryRequest request);
}
